<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS动画效果</title>
    <style>
        .box{
           width: 200px;
           height: 200px;
           background-color: aqua;
           margin: 100px auto;

           /* transition: width 2s linear 0s; */
           /* transition: width 2s ease-in-out 0s; */
           transition: all 5s ease-in-out 0.3s;
     }

     .box:hover{
         width: 500px;
         height: 500px;
         background-color: coral;

         /* transition: width 2s linear 0s; */

     }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>